<?php

namespace App\Modules\Apicrzs\Http\Controllers;

use App\Modules\Apicrzs\Services\VipService;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;

class UserVipController extends BaseApicrzsController
{
    public function __construct(VipService $service)
    {
        $this->service = $service;
        $request = request()->header();
    }
    public function getVipList(Request $request): JsonResponse
    {
        $params = $request->all();
        $data = $this->service->getVipList($params);
        return $this->sendApiSuccess([]);
    }


    public function getUserVipInfo(Request $request): JsonResponse
    {
        $params = $request->all();
        $data = $this->service->getUserVipInfo($params);
        return $this->sendApiSuccess([]);
    }
    public function userVipRedeem(Request $request): JsonResponse
    {
        $uid = config('init.guid');
        $params = $request->all();
        $data = $this->service->userVipRedeem($params);
        return $this->sendApiSuccess([]);
    }
    public function get(Request $request): JsonResponse
    {
        $uid = config('init.guid');
        $params = $request->all();
        $data = $this->service->userVipRedeem($params);
        return $this->sendApiSuccess([]);
    }

}
